package com.ruoyi.healthCard.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.healthCard.mapper.TIndustryMapper;
import com.ruoyi.healthCard.domain.TIndustry;
import com.ruoyi.healthCard.service.ITIndustryService;

/**
 * 行业Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-25
 */
@Service
public class TIndustryServiceImpl implements ITIndustryService 
{
    @Autowired
    private TIndustryMapper tIndustryMapper;

    /**
     * 查询行业
     * 
     * @param industryId 行业主键
     * @return 行业
     */
    @Override
    public TIndustry selectTIndustryByIndustryId(Long industryId)
    {
        return tIndustryMapper.selectTIndustryByIndustryId(industryId);
    }

    /**
     * 查询行业列表
     * 
     * @param tIndustry 行业
     * @return 行业
     */
    @Override
    public List<TIndustry> selectTIndustryList(TIndustry tIndustry)
    {
        return tIndustryMapper.selectTIndustryList(tIndustry);
    }

    /**
     * 新增行业
     * 
     * @param tIndustry 行业
     * @return 结果
     */
    @Override
    public int insertTIndustry(TIndustry tIndustry)
    {
        return tIndustryMapper.insertTIndustry(tIndustry);
    }

    /**
     * 修改行业
     * 
     * @param tIndustry 行业
     * @return 结果
     */
    @Override
    public int updateTIndustry(TIndustry tIndustry)
    {
        return tIndustryMapper.updateTIndustry(tIndustry);
    }

    /**
     * 批量删除行业
     * 
     * @param industryIds 需要删除的行业主键
     * @return 结果
     */
    @Override
    public int deleteTIndustryByIndustryIds(Long[] industryIds)
    {
        return tIndustryMapper.deleteTIndustryByIndustryIds(industryIds);
    }

    /**
     * 删除行业信息
     * 
     * @param industryId 行业主键
     * @return 结果
     */
    @Override
    public int deleteTIndustryByIndustryId(Long industryId)
    {
        return tIndustryMapper.deleteTIndustryByIndustryId(industryId);
    }
}
